import { applyMiddleware, createStore } from 'redux'
// 中间件，解决在redux中使用异步
import thunk from 'redux-thunk'
// 调试插件，方便在浏览器中查看redux中的数据情况
import { composeWithDevTools } from '@redux-devtools/extension'
// reducer模块化后的总的入口
import reducer from '@/reducer'

export default createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
